<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
        v-html和v-txt<br>
        <div v-text="cccc"></div>
        <div>{{cccc}}</div>
        <div v-html="cccc"></div>
    </div>
    <script>
        const {createApp} = Vue
        createApp(
            {
                data(){
                    return {
                        cccc:'<h1>一级标题</h1>'
                    }
                }
            }
        ).mount("#app");
    </script>
</body>
</html>